package com.dongdongshop.service.impl;

import com.dongdongshop.mapper.TbAdminMapper;
import com.dongdongshop.mapper.TbSellerMapper;
import com.dongdongshop.pojo.TbAdmin;
import com.dongdongshop.pojo.TbSeller;
import com.dongdongshop.service.LoginService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
@DubboService
public class LoginServiceImpl implements LoginService {
    @Resource
    private TbAdminMapper tm;

    @Resource
    private TbSellerMapper sm;


    @Override
    public TbAdmin getAll(String username) {
        return tm.selectByName(username);
    }

    @Override
    public TbSeller getSeller(String username) {
        return sm.selectByName(username);
    }
}
